const printCanvas = function (canvas, pixels) {
  const ctx = canvas.getContext('2d');
  let rect = canvas.getBoundingClientRect();
  ctx.clearRect(0, 0, rect.width, rect.height);
  ctx.putImageData(pixels, 0, 0);
}

export default printCanvas;
